package com.bltec.emergency.service.resService.impl;

import com.bltec.emergency.mapper.ResExpertsMapper;
import com.bltec.emergency.model.ResExperts;
import com.bltec.emergency.service.resService.ResExpertsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class ResExpertsServiceImpl implements ResExpertsService {
    @Resource
    private ResExpertsMapper resExpertsMapper;
    @Override
    public boolean add(ResExperts resExperts) {
        return resExpertsMapper.insert(resExperts);
    }

    @Override
    public boolean deleteResExpertsById(Long id) {
        return resExpertsMapper.setDisableById(id);
    }

    @Override
    public boolean updateResExpertsById(ResExperts resExperts) {
        return resExpertsMapper.updateResExpertsById(resExperts);
    }

    @Override
    public ResExperts getResExpertsById(Long id) {
        return resExpertsMapper.getResExpertsById(id);
    }

    @Override
    public List<ResExperts> getAll() {
        return resExpertsMapper.selectAll();
    }
}
